package com.fr.chart.core.glyph;

import com.fr.base.core.json.JSONException;
import com.fr.base.core.json.JSONObject;
import com.fr.base.xml.XMLPrintWriter;
import com.fr.base.xml.XMLableReader;
import com.fr.chart.axis.CategoryAxis;
import java.awt.Graphics;
import java.util.ArrayList;

public class AreaCategoryAxisGlyph extends CategoryAxisGlyph
{
  private static final long serialVersionUID = -5058587220446667986L;
  public static final String XML_TAG = "AreaCategoryAxisGlyph";

  public AreaCategoryAxisGlyph(CategoryAxis paramCategoryAxis)
  {
    super(paramCategoryAxis);
  }

  public int getCategoryCount()
  {
    int i = this.categoryLabelList.size();
    return ((i > 1) ? i - 1 : i);
  }

  public int getCategoryFullCount()
  {
    int i = this.categoryLabelList.size();
    return ((i > 1) ? i - 1 + this.forward : i + this.forward);
  }

  protected void drawLabel(Graphics paramGraphics, double paramDouble, String paramString)
  {
    drawLabel(paramGraphics, paramDouble, 0.0D, paramString);
  }

  protected void drawBGLabel(Graphics paramGraphics, double paramDouble, String paramString, int paramInt)
  {
    drawBGLabel(paramGraphics, paramDouble, 0.0D, paramString, paramInt);
  }

  public void writeXML(XMLableReader paramXMLableReader)
  {
    super.readXML(paramXMLableReader);
  }

  public void readXML(XMLPrintWriter paramXMLPrintWriter)
  {
    paramXMLPrintWriter.startTAG("AreaCategoryAxisGlyph");
    super.writeXML(paramXMLPrintWriter);
    paramXMLPrintWriter.end();
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof AreaCategoryAxisGlyph))
      return false;
    return (super.equals(paramObject));
  }

  public JSONObject toJSONObject()
    throws JSONException
  {
    JSONObject localJSONObject = super.toJSONObject();
    return localJSONObject;
  }

  public String getJSAxisType()
  {
    return "AreaCategoryAxisGlyph";
  }
}